<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增出版单位管理')" />
    <th:block th:include="include :: select2-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal " id="form-unit-add">
            <h4 class="form-header h4">基本信息</h4>
            <div class="row">

                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-4  control-label is-required">单位名称：</label>
                        <div class="col-sm-8">
                            <input name="companyName" class="form-control" type="text" required>
                        </div>
                    </div>
                </div>
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-4  control-label is-required">主管单位：</label>
                        <div class="col-sm-8">
                            <input name="competentUnit" class="form-control" type="text" required>
                        </div>
                    </div>
                </div>
            </div>

            <div class="row">

                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-4  control-label">主办单位：</label>
                        <div class="col-sm-8">
                            <input name="organizers" class="form-control" type="text">
                        </div>
                    </div>
                </div>

                <div class="col-sm-6">

                    <div class="form-group">
                        <label class="col-sm-4  control-label">单位地址：</label>
                        <div class="col-sm-8">
                            <input name="address" class="form-control" type="text">
                        </div>
                    </div>

                </div>


                </div>



            <div class="row">

                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-4  control-label is-required">审读联系人：</label>
                        <div class="col-sm-8">
                            <input name="reviewer" class="form-control" type="text" required>
                        </div>
                    </div>
                </div>

                <div class="col-sm-6">

                    <div class="form-group">
                        <label class="col-sm-4  control-label is-required">联系电话：</label>
                        <div class="col-sm-8">
                            <input name="telephone" class="form-control" type="text" required>
                        </div>
                    </div>
                </div>
            </div>


            <div class="row">

                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-4  control-label is-required">单位类型：</label>
                        <div class="col-sm-8">
                            <select name="by1" class="form-control m-b" th:with="type=${@dict.getType('re_unit_type')}">
                                <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
                            </select>

                        </div>
                    </div>
                </div>

                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-4 control-label ">总编姓名：</label>
                        <div class="col-sm-8">
                            <input name="editorChief"  class="form-control" type="text" >
                        </div>
                    </div>
                </div>
            </div>

            <div class="row">
                <div class="col-sm-6">
                    <div class="form-group">
                        <label class="col-sm-4  control-label ">电子邮件：</label>
                        <div class="col-sm-8">
                            <input name="email" class="form-control email" type="text" >
                        </div>
                    </div>
                </div>
            </div>





            <div class="row">
                <div class="col-sm-12">
                    <div class="form-group">
                        <label class="col-xs-2  control-label">其他说明：</label>
                        <div class="col-xs-10">
                            <textarea name="instructions" maxlength="500" class="form-control" rows="3"></textarea>
                        </div>
                    </div>
                </div>
            </div>

        </form>
    </div>

    <div class="row">
        <div class="col-sm-offset-5 col-sm-10">
            <button type="button" class="btn btn-sm btn-primary" onclick="submitHandler()"><i class="fa fa-check"></i>保 存</button>&nbsp;
            <button type="button" class="btn btn-sm btn-danger" onclick="closeItem()"><i class="fa fa-reply-all"></i>关 闭 </button>
        </div>
    </div>

    <th:block th:include="include :: footer" />
    <th:block th:include="include :: select2-js" />
    <script th:inline="javascript">
        var prefix = ctx + "publish/unit"
        $("#form-unit-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {

                $.operate.saveTab(prefix + "/add", $('#form-unit-add').serialize());
            }
        }
    </script>
</body>
</html>